const menuList = [ // 假设后端动态返回菜单数据
  {
    title: '用户信息',
    url: '/user/info',
    class: 'icon-user-info'
  },
  {
    title: '用户学历',
    url: '/user/record',
    class: 'icon-user-manage'
  },
  {
    title: '所有用户',
    url: '/user/list',
    class: 'icon-user-cert'
  }
]
const addRouterList = [
  {
    path: '/user',
    component: () => import('@/views/user/index.vue'),
    redirect: '/user/info',
    children: [
      {
        path: '/user/info',
        component: () => import('@/views/user/info/index.vue'),
        meta: {
          title: '用户信息',
          id: '用户信息',
          requiresAuth: true,
          roles: ['admin', 'editor']
        },
        class: 'icon-user-info',
        name: 'info'
      },
      {
        path: '/user/record',
        component: () => import('@/views/user/record/index.vue'),
        meta: {
          title: '用户学历',
          id: '用户学历',
          requiresAuth: true,
          roles: ['admin', 'editor'] // 管理员和编辑可以访问
        },
        class: 'icon-user-manage',
        name: 'record'
      },
      {
        path: '/user/list',
        component: () => import('@/views/user/list/index.vue'),
        meta: {
          title: '所有用户',
          id: '所有用户',
          requiresAuth: true,
          roles: ['admin'] // 管理员和编辑可以访问
        },
        class: 'icon-user-credent',
        name: 'list'
      }
    ]
  }
]
export { menuList, addRouterList }